package main

import "fmt"

func testM(){

	//捕获异常（错误）
	defer func() {
		err := recover()
		if err != nil{
			fmt.Println(err)
		}
	}()

	var m map[string]int
	m["stu"] = 100
}

func main (){
	testM()
}